a = [int(i) for i in input().split(' ')]
h, n = a[0], a[1]


def func(x, y):
    sum = float(x)
    for i in range(y - 1):
        sum += x
        x /= 2
    return  round(x / 2, 2), round(sum * 1.0000, 2)


ans = func(h, n)
print("%.2f %.2f"%(ans[0], ans[1]))
